import { adhubRequest as request } from '@/utils/request';
import { stringify } from 'qs';

export async function getDataPool() {
  return await request(`/datapool`);
}

export async function deleteDataPool(id: string | number) {
  return await request(`/datapool/${id}`, {
    method: 'DELETE',
  });
}

export async function editDataPool(id: string | number, data: { name: string, description: string }) {
  return await request(`/datapool/${id}`, {
    method: 'PUT',
    data,
  });
}

export async function addDataPool(data: { name: string, description: string }) {
  return await request(`/datapool`, {
    method: 'POST',
    data,
  });
}









